package com.meowcook.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 28792
 * Date: 2025-05-10
 * Time: 13:49
 */
@Data
@ApiModel(value = "厨具参数")
public class CookerAddDTO {
    @Length(max = 30, message = "名字不能超过30字")
    @NotBlank
    @ApiModelProperty(value = "厨具名称，不能超过30字", required = true)
    private String name;

    @Min(value = 1, message = "数量不能小于1")
    @Max(value = 60000, message = "数量不能大于60000")
    @NotNull
    @ApiModelProperty(value = "厨具数量，不能小于1,不能大于60000", required = true)
    private Short quantity;
}
